.ExportedInsight {
    position: relative;
    z-index: 3;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    .ExportedInsight__header {
        display: flex;
        justify-content: space-between;
        padding: 1rem;
        border-bottom: 1px solid var(--border);

        .ExportedInsight__header__title {
            font-size: 1rem;
            font-weight: 600;
        }
    }

    .ExportedInsight__content {
        position: relative;
        z-index: 1;
        display: flex;
        flex: 1;
        flex-direction: column;
        border-radius: 0 0 var(--radius) var(--radius);

        html.export-type-image & .InsightCard__viz {
            // We can't use the viewport height, as the screenshotter will resize the height of the window to capture the full content
            // Instead we try to make it roughly rectangular
            min-height: 50vw;
        }
    }

    .LemonTable {
        --lemon-table-background-color: var(--bg-light);
    }

    .ExportedInsight__watermark {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 2;

        svg {
            margin: 0.25rem;
            font-size: 0.75rem;
        }
    }
}
